let path = require('path')
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    lintOnSave: false,//这里禁止使用eslint-loadery
    outputDir: 'dist',
    assetsDir: 'static',
    devServer: {
        host: '0.0.0.0',
        public: '172.20.61.193:5000',
        port: 5000,
        https: false,
        hotOnly: false,
        disableHostCheck: true,
        proxy: {
            [process.env.VUE_APP_BASE_API]: {
                target: 'http://172.20.61.77:5000',
                // target: 'https://gdc.vspn.com',
                changeOrigin: true,
                pathRewrite: {
                    ['^' + process.env.VUE_APP_BASE_API]: ''
                }
            }
        }
    },
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src')) // key,value自行定义，比如.set('@@', resolve('src/components'))
    }
}
